//
//  ImageEditModel.h
//  TKnowBox
//
//  Created by LiuXubin on 15/6/26.
//  Copyright (c) 2015年 knowin. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, ImageEditType)
{
    IET_Origin = 0,
    IET_Enhance = 1 << 0,
    IET_Edit = 1 << 1,
};

@interface SimImageEditModel : NSObject

@property (nonatomic, strong) NSString *fileDir;
@property (nonatomic, strong) NSString *fileName;

@property (nonatomic, strong) UIImage *orignalImage;
@property (nonatomic, strong) UIImage *processImage;
@property (nonatomic) ImageEditType editType;

- (void)tryUpdateEditStatus;
- (void)cleanup;

+ (NSString *)orignalNameForEditName:(NSString *)editName;
+ (NSString *)editNameForEditType:(ImageEditType)editType name:(NSString *)name;
+ (ImageEditType)editTypeForImageName:(NSString *)imageName;
+ (void)deleteImageName:(NSString *)imageName subpathsOfDirectoryAtPath:(NSString *)path;

@end
